<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj={
        name:undefined
    }
    console.log(obj.name)
    console.log("name2" in obj)
</script>
</html>